package cn.youqu.happy.module.youqu.enums.userTell;

import cn.youqu.happy.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum UserTellTypeEnum implements IntArrayValuable {
    OPEN(0, "讨论"),
    PRIVATE_PARTNER(1, "分享"),
    PRIVATE_OWN(2, "其他"),
    ;
    private final Integer type;
    private final String msg;
    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(UserTellTypeEnum::getType).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
